<?php
/**
 * Copyright (C), 2021-2021, old_liu_cms.
 * FileName: Enum.php
 * Description: 枚举
 *
 * @author old_liu
 * @Create Date    2021/10/9 14:49
 * @Update Date    2021/10/9 14:49 By old_liu
 * @version v1.0
 */

namespace App\Constants;

class ErrorResponse
{
    const ERROR_CODE = 400;

    const ERROR_DATA_EXISTS = ['code' => self::ERROR_CODE, 'message'=>'Data Already Exists'];
    const ERROR_DATA_NOT_EXISTS = ['code' => self::ERROR_CODE, 'message'=>'Data Does Not Exist'];

    const ERROR_OPERATION_FAIL = ['code' => self::ERROR_CODE, 'message'=>'The Operation Failure'];

    const ERROR_NOT_LOGIN = ['code' => 401, 'message'=>'Please Login First'];
    const ERROR_USERNAME_PASSWORD = ['code' => 400, 'message'=>'The Username Or Password Is Incorrect'];
    const ERROR_NO_AUTH = ['code' => 403, 'message'=>'No Auth'];
}
